<style>
	label input {
    display: none; }
  label span {
    display: block;
    width: 24px !important;
   
    height: 24px !important;
    border: 1px solid #CCCCCC;
    position: relative; }
    label span i {
    	 margin: 3px 2px 0px 0;
      display: none;
      color: #CCCCCC;
      position: absolute;
      font-size: 30px !important;
      top: -15px;
      left: 0; }
	
</style>
<div id="content-header">
    <div id="breadcrumb"> <a href="#" title="Go to Home" class="tip-bottom">
    	<i class="icon-home"></i> 系统管理</a> 
    	<a ui-sref="home.user" class="current">用户管理</a> 
    	<a class="current">修改</a> </div>
  </div>
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span12">
 
			<div class="widget-box">
          <div class="widget-content nopadding">
									 <form  novalidate="novalidate" name="form">
                                        	 <div class="input-group">  
												 <div class="input-group-addon">用户名</div>
											      <input name="name"  type="text" class="form-control " placeholder="用户名"  ng-model="name" required disabled="disabled">
											     <div class="error ng-scope"  ng-if="form.name.$error.required">
											     	用户名称不能为空
											     </div>
											  </div>
										     <div class="input-group">  
												 <div class="input-group-addon">密码</div>
											      		<input name="pwd"  type="password" class="form-control " ng-change="password()" ng-pattern="/^([A-Z]|[a-z]|[0-9]|[`~!@#$%^&*()+=|{}':;',\\\\[\\\\].<>/?~！@#￥%……&*（）——+|{}【】‘；：”“'。，、？]){6,32}$/" placeholder="密码" ng-model="pwd" required
											      			 ng-model="pwd">
											      			 <span class="warn errorheight" ng-show="!form.pwd.$error.required&&form.pwd.$error.pattern">密码长度不足</span>
											      <span class="warn errorheight"  ng-if="form.pwd.$error.required">
											     	密码不能为空
											     </span>
											  </div>
											  <div class="input-group">  
												 <div class="input-group-addon">手机号</div>
											      		<input type="text" name="telephone"  class="form-control " ng-model="telephone" 
											      			ng-pattern="/^(0|86|17951)?(13[0-9]|15[012356789]|17[0135678]|18[0-9]|14[57])[0-9]{8}$/"/>
											      			
                    									<span class="warn errorheight" ng-show="form.telephone.$error.pattern">手机格式错误</span> 
											  </div>
											  <div class="input-group">  
												 <div class="input-group-addon" style="border: 1px solid #ccc;">是否启用</div>
											      		<div class="ipt ng-scope" style="position: absolute;width: 450px;height: 38px; padding-left: 10px;" >
											       <label  ng-class="{'true':'select'}[state]" >
											       	<span>
												    	<i class="iconfont icon-xuanzhong"></i></span>
												    	<input type="checkbox"  name="type"  ng-model="state" />
												   </label>
												  </div>  
											  </div>
											  <div  class="input-group ng-scope" style="margin-bottom:100px;">
												  <div class="input-group-addon" style="height: 56px!important;">角色</div>
												  <div class="ipt ng-scope" style="position: absolute; border: 1px solid #ccc;width: 450px;padding: 10px;" >
											       <label ng-repeat="o in list.roles" ng-class="{'true':'select'}[o.checked]"><span>
												    	<i class="iconfont icon-xuanzhong"></i></span>&nbsp;&nbsp;{{o.name}}
												    	<input type="checkbox"  name="type"  ng-model="o.checked" ng-change="change($parent.list.roles)"/>
												   </label>
												  </div>  
										      </div>   
											<div class="input-group ng-scope" style="margin-bottom: ;" >
											      	 <button  ng-class="{true:'btn-primary'}[form.$invalid]" 
											      	 	ng-disabled="form.$invalid||isshows" type="submit" 
											      	 	class="btn  greenbtn"  ng-click="submitForm()" >提交</button>
											      		
											</div>
                                    </form>
          </div>
        </div>
      </div>
    </div>
